package com.shiguiwu.springmybatis.designpattern.flyweight;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 部门经理
 * @author: stone
 * @date: Created by 2021/2/28 23:54
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.flyweight
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Manager implements Employee {

    //部门名称
    private String department;
    //报告内容
    private String reportContent;
    @Override
    public void report() {
        System.out.println(reportContent);

    }

    public Manager(String department) {
        System.out.println("创建部门经理：" + department);
        this.department = department;
        this.reportContent = department + "汇报，此次汇报的主要内容是。。。。";
    }

}
